FROM tutum/apache-php:latest
MAINTAINER loulan

# Install plugins
RUN apt-get update && \
  apt-get -y install php5-gd && \
  apt-get -y install php5-curl && \
  apt-get -y install curl && \
  apt-get -y install unzip && \
  rm -rf /var/lib/apt/lists/*

RUN curl -o shopnc.zip -SL http://7xm4v5.com1.z0.glb.clouddn.com/shopnc.zip \
    && unzip shopnc.zip -d shopnc \
    && mv shopnc/*  /app \
    && rm -rf WeCenter/* \
    && rm -rf shopnc.zip   

CMD ["/run.sh"]